package com.hwtx.form.domain.def;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

@Data
public class Menu {
    private String path;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String component;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String name;
    private Meta meta;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String redirect;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children;

    @Data
    public static class Meta {
        private String title;
        @JsonInclude(JsonInclude.Include.NON_NULL)
        private String icon = "ri:information-line";
        private boolean showLink = true;
    }
}
